<#include "/common/head.ftl">

<@showTitle title="${i18n.getMessage('refund')} > ${i18n.getMessage('add')}">
</@showTitle>

<div id="error" style="display:none"></div>

<form action="receipt/addRefund.sgt" validator="receipt/validateReceiptRefund.sgt" onsubmit="submitFormValidation(this); return false;" onreset="$('error').hide()">
	<input type="hidden" name="receiptId" value="${(receipt.id)!}"/>
	<table id="dataTable" cellspacing="5" cellpadding="0" align="center">
		<tr>
			<td class="name">${i18n.getMessage('student')}:</td>
			<td><a href="#" onclick="cc('student/showInfoStudent.sgt?id=${receipt.student.id}')" style="color:000">${(receipt.student.fullName)!}</a></td>
		</tr>
		<tr>
			<td class="name">${i18n.getMessage('receiptNo')}:</td>
			<td><a href="#" onclick="cc('receipt/showInfoOfferingReceipt.sgt?id=${receipt.id}')" style="color:000">${(receipt.number)!}</a></td>
		</tr>
		<tr>
			<td class="name"><@required/>${i18n.getMessage('date')}:</td>
			<td><input type="text" name="date" value="${now?date}" style="width:200px"/><img class="calendarImg" src="images/calendar/calendar.gif" onclick="displayCalendar(document.forms[0].date, '${i18n.getMessage('format.date')}', this)"/></td>
		</tr>
		<tr>
			<td class="name"><@required/>${i18n.getMessage('fee')}:</td>
			<td><input type="text" name="fee" style="text-align:right;width:170px"/> ${i18n.getMessage('currency.vnd')}</td>
		</tr>
		<tr>
			<td class="name" style="vertical-align:top">${i18n.getMessage('reason')}</td>
			<td><textarea name="reason" style="width:300px;height:80px"></textarea></td>
		</tr>
		<tr>
			<td class="name" style="vertical-align:top">${i18n.getMessage('comment')}</td>
			<td><textarea name="comment" style="width:300px;height:80px"></textarea></td>
		</tr>
		<tr>
			<td class="name"></td>
			<td>
				<input type="submit" value="${i18n.getMessage('add')}" class="button_style"/> 
				<input type="reset" value="${i18n.getMessage('reset')}" class="button_style"/>
			</td>
		</tr>
	</table>
</form>